home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 13 / CU Amiga Magazine's Super CD-ROM 13 (1997)(EMAP Images)(GB)(Track 1 of 2)[!][issue 1997-08].iso / CUCD / Graphics / Ghostscript / src / jpeg-6a / makefile.cfg < prev    next >
Makefile  |  1996-02-07  |  14KB  |  275 lines

  1. # Makefile for Independent JPEG Group's software
  2.  
  3. # makefile.cfg is edited by configure to produce a custom Makefile.
  4.  
  5. # Read installation instructions before saying "make" !!
  6.  
  7. # For compiling with source and object files in different directories.
  8. srcdir = @srcdir@
  9. VPATH = @srcdir@
  10.  
  11. # Where to install the programs and man pages.
  12. prefix = @prefix@
  13. exec_prefix = @exec_prefix@
  14. bindir = $(exec_prefix)/bin
  15. libdir = $(exec_prefix)/lib
  16. includedir = $(prefix)/include
  17. binprefix =
  18. manprefix =
  19. manext = 1
  20. mandir = $(prefix)/man/man$(manext)
  21.  
  22. # The name of your C compiler:
  23. CC= @CC@
  24.  
  25. # You may need to adjust these cc options:
  26. CFLAGS= @CFLAGS@ @CPPFLAGS@ @INCLUDEFLAGS@
  27. # Generally, we recommend defining any configuration symbols in jconfig.h,
  28. # NOT via -D switches here.
  29. # However, any special defines for ansi2knr.c may be included here:
  30. ANSI2KNRFLAGS= @ANSI2KNRFLAGS@
  31.  
  32. # Link-time cc options:
  33. LDFLAGS= @LDFLAGS@
  34.  
  35. # To link any special libraries, add the necessary -l commands here.
  36. LDLIBS= @LIBS@
  37.  
  38. # Put here the object file name for the correct system-dependent memory
  39. # manager file.  For Unix this is usually jmemnobs.o, but you may want
  40. # to use jmemansi.o or jmemname.o if you have limited swap space.
  41. SYSDEPMEM= @MEMORYMGR@
  42.  
  43. # miscellaneous OS-dependent stuff
  44. SHELL= /bin/sh
  45. # linker
  46. LN= $(CC)
  47. # file deletion command
  48. RM= rm -f
  49. # file rename command
  50. MV= mv
  51. # library (.a) file creation command
  52. AR= ar rc
  53. # second step in .a creation (use "touch" if not needed)
  54. AR2= @RANLIB@
  55. # installation program
  56. INSTALL= @INSTALL@
  57. INSTALL_PROGRAM= @INSTALL_PROGRAM@
  58. INSTALL_DATA= @INSTALL_DATA@
  59.  
  60. # End of configurable options.
  61.  
  62.  
  63. # source files: JPEG library proper
  64. LIBSOURCES= jcapimin.c jcapistd.c jccoefct.c jccolor.c jcdctmgr.c jchuff.c \
  65.         jcinit.c jcmainct.c jcmarker.c jcmaster.c jcomapi.c jcparam.c \
  66.         jcphuff.c jcprepct.c jcsample.c jctrans.c jdapimin.c jdapistd.c \
  67.         jdatadst.c jdatasrc.c jdcoefct.c jdcolor.c jddctmgr.c jdhuff.c \
  68.         jdinput.c jdmainct.c jdmarker.c jdmaster.c jdmerge.c jdphuff.c \
  69.         jdpostct.c jdsample.c jdtrans.c jerror.c jfdctflt.c jfdctfst.c \
  70.         jfdctint.c jidctflt.c jidctfst.c jidctint.c jidctred.c jquant1.c \
  71.         jquant2.c jutils.c jmemmgr.c
  72. # memmgr back ends: compile only one of these into a working library
  73. SYSDEPSOURCES= jmemansi.c jmemname.c jmemnobs.c jmemdos.c jmemmac.c
  74. # source files: cjpeg/djpeg/jpegtran applications, also rdjpgcom/wrjpgcom
  75. APPSOURCES= cjpeg.c djpeg.c jpegtran.c cdjpeg.c rdcolmap.c rdswitch.c \
  76.         rdjpgcom.c wrjpgcom.c rdppm.c wrppm.c rdgif.c wrgif.c rdtarga.c \
  77.         wrtarga.c rdbmp.c wrbmp.c rdrle.c wrrle.c
  78. SOURCES= $(LIBSOURCES) $(SYSDEPSOURCES) $(APPSOURCES)
  79. # files included by source files
  80. INCLUDES= jchuff.h jdhuff.h jdct.h jerror.h jinclude.h jmemsys.h jmorecfg.h \
  81.         jpegint.h jpeglib.h jversion.h cdjpeg.h cderror.h
  82. # documentation, test, and support files
  83. DOCS= README install.doc usage.doc cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 \
  84.         wrjpgcom.1 wizard.doc example.c libjpeg.doc structure.doc \
  85.         coderules.doc filelist.doc change.log
  86. MKFILES= configure makefile.cfg makefile.ansi makefile.unix makefile.bcc \
  87.         makefile.mc6 makefile.dj makefile.wat makcjpeg.st makdjpeg.st \
  88.         makljpeg.st maktjpeg.st makefile.manx makefile.sas makefile.mms \
  89.         makefile.vms makvms.opt
  90. CONFIGFILES= jconfig.cfg jconfig.manx jconfig.sas jconfig.st jconfig.bcc \
  91.         jconfig.mc6 jconfig.dj jconfig.wat jconfig.vms
  92. OTHERFILES= jconfig.doc ckconfig.c ansi2knr.c ansi2knr.1 jmemdosa.asm
  93. TESTFILES= testorig.jpg testimg.ppm testimg.gif testimg.jpg testprog.jpg \
  94.         testimgp.jpg
  95. DISTFILES= $(DOCS) $(MKFILES) $(CONFIGFILES) $(SOURCES) $(INCLUDES) \
  96.         $(OTHERFILES) $(TESTFILES)
  97. # library object files common to compression and decompression
  98. COMOBJECTS= jcomapi.o jutils.o jerror.o jmemmgr.o $(SYSDEPMEM)
  99. # compression library object files
  100. CLIBOBJECTS= jcapimin.o jcapistd.o jctrans.o jcparam.o jdatadst.o jcinit.o \
  101.         jcmaster.o jcmarker.o jcmainct.o jcprepct.o jccoefct.o jccolor.o \
  102.         jcsample.o jchuff.o jcphuff.o jcdctmgr.o jfdctfst.o jfdctflt.o \
  103.         jfdctint.o
  104. # decompression library object files
  105. DLIBOBJECTS= jdapimin.o jdapistd.o jdtrans.o jdatasrc.o jdmaster.o \
  106.         jdinput.o jdmarker.o jdhuff.o jdphuff.o jdmainct.o jdcoefct.o \
  107.         jdpostct.o jddctmgr.o jidctfst.o jidctflt.o jidctint.o jidctred.o \
  108.         jdsample.o jdcolor.o jquant1.o jquant2.o jdmerge.o
  109. # These objectfiles are included in libjpeg.a
  110. LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
  111. # object files for sample applications (excluding library files)
  112. COBJECTS= cjpeg.o rdppm.o rdgif.o rdtarga.o rdrle.o rdbmp.o rdswitch.o \
  113.         cdjpeg.o
  114. DOBJECTS= djpeg.o wrppm.o wrgif.o wrtarga.o wrrle.o wrbmp.o rdcolmap.o \
  115.         cdjpeg.o
  116. TROBJECTS= jpegtran.o rdswitch.o cdjpeg.o
  117.  
  118.  
  119. all: @ANSI2KNR@ libjpeg.a cjpeg djpeg jpegtran rdjpgcom wrjpgcom
  120.  
  121. # This rule causes ansi2knr to be invoked.
  122. @ISANSICOM@.c.o:
  123. @ISANSICOM@    ./ansi2knr $(srcdir)/$*.c T$*.c
  124. @ISANSICOM@    $(CC) $(CFLAGS) -c T$*.c
  125. @ISANSICOM@    $(RM) T$*.c $*.o
  126. @ISANSICOM@    $(MV) T$*.o $*.o
  127.  
  128. ansi2knr: ansi2knr.c
  129.     $(CC) $(CFLAGS) $(ANSI2KNRFLAGS) -o ansi2knr ansi2knr.c
  130.  
  131. libjpeg.a: @ANSI2KNR@ $(LIBOBJECTS)
  132.     $(RM) libjpeg.a
  133.     $(AR) libjpeg.a  $(LIBOBJECTS)
  134.     $(AR2) libjpeg.a
  135.  
  136. cjpeg: $(COBJECTS) libjpeg.a
  137.     $(LN) $(LDFLAGS) -o cjpeg $(COBJECTS) libjpeg.a $(LDLIBS)
  138.  
  139. djpeg: $(DOBJECTS) libjpeg.a
  140.     $(LN) $(LDFLAGS) -o djpeg $(DOBJECTS) libjpeg.a $(LDLIBS)
  141.  
  142. jpegtran: $(TROBJECTS) libjpeg.a
  143.     $(LN) $(LDFLAGS) -o jpegtran $(TROBJECTS) libjpeg.a $(LDLIBS)
  144.  
  145. rdjpgcom: rdjpgcom.o
  146.     $(LN) $(LDFLAGS) -o rdjpgcom rdjpgcom.o $(LDLIBS)
  147.  
  148. wrjpgcom: wrjpgcom.o
  149.     $(LN) $(LDFLAGS) -o wrjpgcom wrjpgcom.o $(LDLIBS)
  150.  
  151. jconfig.h: jconfig.doc
  152.     echo You must prepare a system-dependent jconfig.h file.
  153.     echo Please read the installation directions in install.doc.
  154.     exit 1
  155.  
  156. install: cjpeg djpeg jpegtran rdjpgcom wrjpgcom
  157.     $(INSTALL_PROGRAM) cjpeg $(bindir)/$(binprefix)cjpeg
  158.     $(INSTALL_PROGRAM) djpeg $(bindir)/$(binprefix)djpeg
  159.     $(INSTALL_PROGRAM) jpegtran $(bindir)/$(binprefix)jpegtran
  160.     $(INSTALL_PROGRAM) rdjpgcom $(bindir)/$(binprefix)rdjpgcom
  161.     $(INSTALL_PROGRAM) wrjpgcom $(bindir)/$(binprefix)wrjpgcom
  162.     $(INSTALL_DATA) $(srcdir)/cjpeg.1 $(mandir)/$(manprefix)cjpeg.$(manext)
  163.     $(INSTALL_DATA) $(srcdir)/djpeg.1 $(mandir)/$(manprefix)djpeg.$(manext)
  164.     $(INSTALL_DATA) $(srcdir)/jpegtran.1 $(mandir)/$(manprefix)jpegtran.$(manext)
  165.     $(INSTALL_DATA) $(srcdir)/rdjpgcom.1 $(mandir)/$(manprefix)rdjpgcom.$(manext)
  166.     $(INSTALL_DATA) $(srcdir)/wrjpgcom.1 $(mandir)/$(manprefix)wrjpgcom.$(manext)
  167.  
  168. install-lib: libjpeg.a install-headers
  169.     $(INSTALL_DATA) libjpeg.a $(libdir)/$(binprefix)libjpeg.a
  170.  
  171. install-headers: jconfig.h
  172.     $(INSTALL_DATA) jconfig.h $(includedir)/jconfig.h
  173.     $(INSTALL_DATA) $(srcdir)/jpeglib.h $(includedir)/jpeglib.h
  174.     $(INSTALL_DATA) $(srcdir)/jmorecfg.h $(includedir)/jmorecfg.h
  175.     $(INSTALL_DATA) $(srcdir)/jerror.h $(includedir)/jerror.h
  176.  
  177. clean:
  178.     $(RM) *.o cjpeg djpeg jpegtran libjpeg.a rdjpgcom wrjpgcom
  179.     $(RM) ansi2knr core testout* config.log config.status
  180.  
  181. distribute:
  182.     $(RM) jpegsrc.tar*
  183.     tar cvf jpegsrc.tar $(DISTFILES)
  184.     compress -v jpegsrc.tar
  185.  
  186. test: cjpeg djpeg jpegtran
  187.     $(RM) testout*
  188.     ./djpeg -dct int -ppm -outfile testout.ppm  $(srcdir)/testorig.jpg
  189.     ./djpeg -dct int -gif -outfile testout.gif  $(srcdir)/testorig.jpg
  190.     ./cjpeg -dct int -outfile testout.jpg  $(srcdir)/testimg.ppm
  191.     ./djpeg -dct int -ppm -outfile testoutp.ppm $(srcdir)/testprog.jpg
  192.     ./cjpeg -dct int -progressive -opt -outfile testoutp.jpg $(srcdir)/testimg.ppm
  193.     ./jpegtran -outfile testoutt.jpg $(srcdir)/testprog.jpg
  194.     cmp $(srcdir)/testimg.ppm testout.ppm
  195.     cmp $(srcdir)/testimg.gif testout.gif
  196.     cmp $(srcdir)/testimg.jpg testout.jpg
  197.     cmp $(srcdir)/testimg.ppm testoutp.ppm
  198.     cmp $(srcdir)/testimgp.jpg testoutp.jpg
  199.     cmp $(srcdir)/testorig.jpg testoutt.jpg
  200.  
  201. check: test
  202.  
  203. # GNU Make likes to know which target names are not really files to be made:
  204. .PHONY: all install install-lib install-headers clean distribute test check
  205.  
  206.  
  207. jcapimin.o: jcapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  208. jcapistd.o: jcapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  209. jccoefct.o: jccoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  210. jccolor.o: jccolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  211. jcdctmgr.o: jcdctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  212. jchuff.o: jchuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jchuff.h
  213. jcinit.o: jcinit.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  214. jcmainct.o: jcmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  215. jcmarker.o: jcmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  216. jcmaster.o: jcmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  217. jcomapi.o: jcomapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  218. jcparam.o: jcparam.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  219. jcphuff.o: jcphuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jchuff.h
  220. jcprepct.o: jcprepct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  221. jcsample.o: jcsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  222. jctrans.o: jctrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  223. jdapimin.o: jdapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  224. jdapistd.o: jdapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  225. jdatadst.o: jdatadst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
  226. jdatasrc.o: jdatasrc.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
  227. jdcoefct.o: jdcoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  228. jdcolor.o: jdcolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  229. jddctmgr.o: jddctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  230. jdhuff.o: jdhuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdhuff.h
  231. jdinput.o: jdinput.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  232. jdmainct.o: jdmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  233. jdmarker.o: jdmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  234. jdmaster.o: jdmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  235. jdmerge.o: jdmerge.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  236. jdphuff.o: jdphuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdhuff.h
  237. jdpostct.o: jdpostct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  238. jdsample.o: jdsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  239. jdtrans.o: jdtrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  240. jerror.o: jerror.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jversion.h jerror.h
  241. jfdctflt.o: jfdctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  242. jfdctfst.o: jfdctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  243. jfdctint.o: jfdctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  244. jidctflt.o: jidctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  245. jidctfst.o: jidctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  246. jidctint.o: jidctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  247. jidctred.o: jidctred.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  248. jquant1.o: jquant1.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  249. jquant2.o: jquant2.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  250. jutils.o: jutils.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  251. jmemmgr.o: jmemmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  252. jmemansi.o: jmemansi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  253. jmemname.o: jmemname.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  254. jmemnobs.o: jmemnobs.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  255. jmemdos.o: jmemdos.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  256. jmemmac.o: jmemmac.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  257. cjpeg.o: cjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  258. djpeg.o: djpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  259. jpegtran.o: jpegtran.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  260. cdjpeg.o: cdjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  261. rdcolmap.o: rdcolmap.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  262. rdswitch.o: rdswitch.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  263. rdjpgcom.o: rdjpgcom.c jinclude.h jconfig.h
  264. wrjpgcom.o: wrjpgcom.c jinclude.h jconfig.h
  265. rdppm.o: rdppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  266. wrppm.o: wrppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  267. rdgif.o: rdgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  268. wrgif.o: wrgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  269. rdtarga.o: rdtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  270. wrtarga.o: wrtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  271. rdbmp.o: rdbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  272. wrbmp.o: wrbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  273. rdrle.o: rdrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  274. wrrle.o: wrrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  275.